home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus 2004 #11 / Amiga Plus CD - 2004 - No. 11.iso / AmiSoft / Dev / misc / LOCCounter.lha / LOCCounter / src / FileTally.h < prev    next >
C/C++ Source or Header  |  2004-08-17  |  985b  |  42 lines

  1. #ifndef LOC_FILE_TALLY_H
  2. #define LOC_FILE_TALLY_H
  3. /****************************************************************************
  4. *
  5. * $RCSfile: FileTally.h $
  6. * $Revision: 2.7 $
  7. * $Date: 2004/08/17 22:30:03 $
  8. * $Author: ssolie $
  9. *
  10. *****************************************************************************
  11. *
  12. * Copyright (c) 2004 Steven Solie.  All Rights Reserved.
  13. *
  14. *****************************************************************************
  15. *
  16. * FileTally component
  17. *
  18. * Each FileTally object contains the tally results for a single source file.
  19. */
  20.  
  21. #include "Main.h"
  22.  
  23. #include <dos/dos.h>
  24.  
  25.  
  26. class FileTally {
  27. public:
  28.     FileTally(const char* file_name, uint32 loc);
  29.     FileTally(const char* file_name, uint32 loc_added, uint32 loc_deleted);
  30.     void print(const BPTR fh);
  31.     friend bool operator <(const FileTally& lhs, const FileTally& rhs);
  32. private:
  33.     const char* m_name;
  34.     uint32 m_loc;
  35.     uint32 m_loc_added;
  36.     uint32 m_loc_deleted;
  37.     bool m_diff_mode;    // true for difference mode
  38. };
  39.  
  40.  
  41. #endif
  42.